<div id="box">
  <form action="<?php echo base_url(); ?>admin/car/<?php if(isset($_GET['id'])) echo "update?id=".$_GET["id"];else echo "insert";?>" method="post" enctype="multipart/form-data">
    <fieldset id="personal">
      <legend>&nbsp;&nbsp;Edit Car&nbsp;&nbsp;</legend>
      <label>ID : </label>
      <?php if(count($detail)>0) echo $detail['id'];else echo "ID"; ?>
      <br>
      <label>Name : </label>
      <input name="name" type="text" value="<?php echo $detail['name']; ?>" />
      <br>
      <label>Description : </label>
      <?php 
										$fck = new FCKeditor('description');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['description'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br>
      <label>Avatar : </label>
      <input name="fuavatar" type="file"/>
      <img src="<?php echo base_url() ?>uploads/car/<?php echo $detail["avatar"];?>" width="150"/><br />
      <!--<label>Address : </label>
      <input name="address" type="text" value="<?php echo $detail['address'] ?>"/>
      <br>
      <label>Category : </label>
      <input name="category" type="text" value="<?php echo $detail['category'] ?>"/>
      <br>-->
      <label>Overview : </label>
      <?php 
										$fck = new FCKeditor('overview');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['overview'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Price : </label>
      <input name="price" type="text" value="<?php echo $detail['price']; ?>" />
      <br>
      <label>Provide : </label>
      <select name="provide">
              <option value="0" >Choose Provide</option>
              <option value="Bagan" <?php if($detail['provide']=="Bagan") echo "selected"; ?>>Bagan</option>
              <option value="Inle" <?php if($detail['provide']=="Inle") echo "selected"; ?>>Inle</option>
              <option value="Mandalay" <?php if($detail['provide']=="Mandalay") echo "selected"; ?>>Mandalay</option>
              <option value="Yangon" <?php if($detail['provide']=="Yangon") echo "selected"; ?>>Yangon</option>
            </select>
      <br>
      <label>Pick Up : </label>
      <input name="pickup" type="text" value="<?php echo $detail['pickup']; ?>" />
      <br>
      <label>Drop Off : </label>
      <input name="dropoff" type="text" value="<?php echo $detail['dropoff']; ?>" />
      <br>
      <label>Service : </label>
      <select name="service">
        <option value="0" <?php if($detail['service']==0) echo "selected"; ?>>Choose Services</option>
        <option value="Airport Transfer" <?php if($detail['service']=="Airport Transfer") echo "selected"; ?>>Airport Transfer</option>
        <option value="Half Day Tour" <?php if($detail['service']=="Half Day Tour") echo "selected"; ?>>Half Day Tour</option>
        <option value="Full Day Tour" <?php if($detail['service']=="Full Day Tour") echo "selected"; ?>>Full Day Tour</option>
        <option value="Inter Region" <?php if($detail['service']=="Inter Region") echo "selected"; ?>>Inter Region</option>
      </select>
      <br>
      <label>Type : </label>
      <select name="type">
        <option value="0" <?php if($detail['service']==0) echo "selected"; ?>>Choose Type Of Car</option>
        <option value="private saloon" <?php if($detail['service']=="Private Saloon") echo "selected"; ?>>Private Saloon</option>
        <option value="9 seat" <?php if($detail['service']=="9 seat") echo "selected"; ?>>9 seat</option>
        <option value="24 seat" <?php if($detail['service']=="24 seat") echo "selected"; ?>>24 seat</option>
        <option value="30 seat" <?php if($detail['service']=="30 seat") echo "selected"; ?>>30 seat</option>
        <option value="45 seat" <?php if($detail['service']=="45 seat") echo "selected"; ?>>45 seat</option>
      </select>
      <br>
      <label>Status : </label>
      <select name="status">
        <option value="0">Choose Status</option>
        <option value="1" <?php if($detail['status']==1) echo "selected"; ?>>Highlights</option>
        <option value="2" <?php if($detail['status']==2) echo "selected"; ?>>Normal</option>
        <option value="3" <?php if($detail['status']==3) echo "selected"; ?>>Hide</option>
      </select>
      <br />
      <div style="float:left;padding-top:5px;padding-left:40%;">
        <input type="reset" value="Reset">
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" value="Submit">
      </div>
    </fieldset>
  </form>
</div>
